// 权限组权限关联
import request from "@/utils/https/requests";

// 列表
export function groupRightsList(data: any) {
    return request({
        url: "/groupRights/list", method: "post", data,
    });
}

// 添加
export function postAddGroupRights(data: any) {
    return request({
        url: "/groupRights/postAdd", method: "post", data,
    });
}

// 修改
export function postModGroupRights(data: any) {
    return request({
        url: `/groupRights/postMod/{${data.id}`, method: "post", data,
    });
}

// 删除
export function postDeleteGroupRights(id: string) {
    return request({
        url: `/groupRights/postDelete/${id}`, method: "post",
    });
}

// 逻辑 删除
export const postLogicDeleteGroupRights = (id) => {
    return request({
        url: `/groupRights/postLogicDelete/${id}`, method: 'post'
    })
}

// 详情
export function groupRightsDetail(id: string) {
    return request({
        url: `/groupRights/detail/${id}`, method: "post",
    });
}